Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Al-705 Assemblyline Client Wrapper #56

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open

Al-705 Assemblyline Client Wrapper #56

wants to merge 25 commits into from

Conversation

cccs-ach
Copy link

@cccs-ach cccs-ach commented Nov 26, 2024

The goal of the client wrapper is to simplify API navigation by providing a client that can be interacted with as an object, using its methods directly.

Instead of returning a dictionary when a query is executed via the search module, a wrapper class is returned. This wrapper class inherits from a dictionary, allowing us to extend its functionality and add additional features to the results returned by queries

Example:

al_client.search.file("<query>")['items'][idx].download()

Additional functionality can be added in the future.

al_client.search.file("<query>")['items'][idx].get_extracted_files() -> Returns a list of FileWrapper

@gdesmar gdesmar requested review from cccs-rs and cccs-jh December 18, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant